<script type="text/javascript" src="../asset/js/baseinfo.js"></script>
<script type="text/javascript">
    var authUrl="https://open.weixin.qq.com/connect/oauth2/authorize";
    var redirect_uri="http%3A%2F%2F" + getRoutePreUrl() + "%2fwechat%2fuser%2fto_home.html";
    var params="response_type=code&scope=snsapi_base#wechat_redirect";
    var targetUrl=authUrl+"?appid="+appid+"&redirect_uri="+redirect_uri+"&"+params;
//    var targetUrl = "../user/Prompt.html"
    window.location.href=targetUrl;
</script>